<?php
namespace app\common\validate;

use think\Validate;

class SolutionCatValidate extends Validate{

    protected $rule = [
        'title'=>'require',
        'cover'=>'require',
        'desc'=>'require',
    ];

    protected $message = [
        'title.require'=>'',
        'cover.require'=>'',
        'desc.require'=>'',
    ];

    protected $scene = [
        'add' => ['title','cover','desc'],
        'edit' => ['title','cover','desc'],
    ];
}